// 基于template/src/widgets/{{appEntities}}/{{ctrls@TREEVIEW}}-tree/{{spinalCase ctrl.codeName}}-tree-vo.ts.hbs生成
import { ControlVOBase } from '@/core';

class MyOrgControlVO extends ControlVOBase {
	constructor(data: any) {
		super(data);
		//  树自持属性
		this.$ownKeys = [
			'sys_organization',
			'id',
			'organization_name',
			'enabled',
			'creator',
			'create_time',
			'updater',
			'update_time',
			'dc',
			'parent_id',
			'parent_name',
			'organization_number',
			'description',
			'short_name',
			'sort',
			'children',
			'parent_ids',
			'sub_ids',
		];
	}
	get id() {
		return this.$DO.id;
	}
	set id(value: any) {
		this.$DO.id = value;
	}
	get text() {
		return this.$DO.organization_name;
	}
	set text(value: any) {
		this.$DO.organization_name = value;
	}
	set srfkey(value: any) {
		this.$DO.id = value;
	}
	get srfkey() {
		return this.$DO.id;
	}
	set organization_name(value: any) {
		this.$DO.organization_name = value;
	}
	get organization_name() {
		return this.$DO.organization_name;
	}
}
class OrgGroupRoleControlVO extends ControlVOBase {
	constructor(data: any) {
		super(data);
		//  树自持属性
		this.$ownKeys = [
			'sys_organizational_role',
			'id',
			'name',
			'enabled',
			'creator',
			'create_time',
			'updater',
			'update_time',
			'dc',
			'organizational_unit_id',
			'department_id',
			'department_name',
			'department_number',
			'organization_id',
			'organization_name',
			'organization_number',
			'description',
			'sort',
			'dn',
		];
	}
	get id() {
		return this.$DO.id;
	}
	set id(value: any) {
		this.$DO.id = value;
	}
	get text() {
		return this.$DO.name;
	}
	set text(value: any) {
		this.$DO.name = value;
	}
	set srfkey(value: any) {
		this.$DO.id = value;
	}
	get srfkey() {
		return this.$DO.id;
	}
	set name(value: any) {
		this.$DO.name = value;
	}
	get name() {
		return this.$DO.name;
	}
}
class SubDeptControlVO extends ControlVOBase {
	constructor(data: any) {
		super(data);
		//  树自持属性
		this.$ownKeys = [
			'sys_department',
			'id',
			'department_name',
			'enabled',
			'creator',
			'create_time',
			'updater',
			'update_time',
			'dc',
			'organization_id',
			'organization_name',
			'organization_number',
			'parent_id',
			'parent_name',
			'department_number',
			'description',
			'short_name',
			'sort',
			'business_category',
			'parent_unit_id',
			'parent_unit_name',
			'dn',
			'children',
			'parent_ids',
			'sub_ids',
		];
	}
	get id() {
		return this.$DO.id;
	}
	set id(value: any) {
		this.$DO.id = value;
	}
	get text() {
		return this.$DO.department_name;
	}
	set text(value: any) {
		this.$DO.department_name = value;
	}
	set srfkey(value: any) {
		this.$DO.id = value;
	}
	get srfkey() {
		return this.$DO.id;
	}
	set department_name(value: any) {
		this.$DO.department_name = value;
	}
	get department_name() {
		return this.$DO.department_name;
	}
}
class TopDeptControlVO extends ControlVOBase {
	constructor(data: any) {
		super(data);
		//  树自持属性
		this.$ownKeys = [
			'sys_department',
			'id',
			'department_name',
			'enabled',
			'creator',
			'create_time',
			'updater',
			'update_time',
			'dc',
			'organization_id',
			'organization_name',
			'organization_number',
			'parent_id',
			'parent_name',
			'department_number',
			'description',
			'short_name',
			'sort',
			'business_category',
			'parent_unit_id',
			'parent_unit_name',
			'dn',
			'children',
			'parent_ids',
			'sub_ids',
		];
	}
	get id() {
		return this.$DO.id;
	}
	set id(value: any) {
		this.$DO.id = value;
	}
	get text() {
		return this.$DO.department_name;
	}
	set text(value: any) {
		this.$DO.department_name = value;
	}
	set srfkey(value: any) {
		this.$DO.id = value;
	}
	get srfkey() {
		return this.$DO.id;
	}
	set department_name(value: any) {
		this.$DO.department_name = value;
	}
	get department_name() {
		return this.$DO.department_name;
	}
}

export const Treeexpbar_treeControlVO = [
	{ name: 'MyOrgControlVO', controlVO: MyOrgControlVO },
	{ name: 'OrgGroupRoleControlVO', controlVO: OrgGroupRoleControlVO },
	{ name: 'SubDeptControlVO', controlVO: SubDeptControlVO },
	{ name: 'TopDeptControlVO', controlVO: TopDeptControlVO },
];
